package com.example.demo.mapper;


import com.example.demo.domain.Role;
import com.example.demo.domain.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserRoleMapper {

    void  addUserRole(UserRole userRole);

    UserRole getByUserIdAndRoleId(Long userId,Long roleId);

    public List<Role> getRoleByUserId(Long userId);
}
